# -*- coding: utf-8 -*

from elixir import *
from sqlalchemy.sql import select, func
from datetime import datetime 

class RunTaskEntity(Entity):
    
    caseId = Field(Unicode(64), index=True)
    name = Field(Unicode(64), index=True)
    
    dateCreated = Field(DateTime, default=datetime.now, nullable=False)
    dateUpdated = Field(DateTime, default=datetime.now, nullable=False)

    status = Field(Unicode(64))
    stage = Field(Unicode(64))
    detail = Field(Unicode(4096))
    
    
    def __repr__(self):
        return u'<RunTaskEntity - %d, %s, %s>' % ( self.id, caseId, self.name )